package com.cloud.commons.utils.message;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "返回类")
public class Result<T> {

    @ApiModelProperty(value = "状态码")
    private int code;//状态码

    @ApiModelProperty(value = "错误信息")
    private String msg;//信息

    @ApiModelProperty(value = "返回数据")
    private T data;//数据

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
